package com.inventory.Mapper;

import com.common.entity.Result;
import com.inventory.Pojo.Inventory;
import com.inventory.Pojo.Outgoods;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface InventoryMapper {
    void AddInventory(Inventory inventory);

    List<Inventory> SearchInventory(@Param("gid") String goodsId, @Param("sid") String storehouseId);

    Inventory getByid(Integer inventoryId);

    void AddInNum(@Param("num") Integer newNum, @Param("id") Integer inventoryId,@Param("intime") String intime,@Param("lastmonthNum") Integer lastmonthNum);

    void OutNum(@Param("inNum") Integer newNum, @Param("outNum") Integer outSum, @Param("outTime") String outtime, @Param("id") Integer inventoryId);

    Inventory getBygoodsId(Integer goodsId);

    void Del(Integer id);

    void updateInventory(Inventory inventory);

    void outgoods(Outgoods outgoods);

    List<Outgoods> searchoutgoods(@Param("gid") String goodsId);

    List<Inventory> get();

    List<Inventory> get2();

    List<Inventory> get1();

    List<Inventory> get3();

    List<Inventory> get4();

    void addNew(Inventory inventory1);

    List<Inventory> yuce4();

    List<Inventory> yuce3();

    List<Inventory> yuce2();

    List<Inventory> yuce1();

    List<Inventory> yuce();

    List<Inventory> yuce5();

    List<Inventory> xiaoliang();

    List<Inventory> xiaoliang1();
    List<Inventory> xiaoliang2();
    List<Inventory> xiaoliang3();
    List<Inventory> xiaoliang4();

    List<Inventory> xiaoliang5();


}
